package org.ybxb.mongo.entity;

import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;


@Data
@Accessors(chain = true)
@Document(collection = "user_c") // 指定实体对应的collection
public class User {

    private String id;

    private String username;

    private Integer age;

    private String email;

    private Date birthDate;

}
